/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package do_.com.pbd.business.referrals.creditcardreferralprogramstatusupdater.ws;

import do_.com.pbd.business.referrals.creditcardreferralprogramstatusupdater.facad.CCReferralUpdaterFacadeRemote;
import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.ejb.Stateless;

/**
 *
 * @author Samuel Pichardo
 */
@WebService(serviceName = "ReferralsUpdaterWS")
@Stateless()
public class ReferralsUpdaterWS {
    @EJB
    private CCReferralUpdaterFacadeRemote ejbRef;// Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Web Service Operation")

    @WebMethod(operationName = "createUpdater")
    public int createUpdater() throws Exception {
        return ejbRef.createUpdater();
    }

    @WebMethod(operationName = "removeUpdater")
    public int removeUpdater() throws Exception {
        return ejbRef.removeUpdater();
    }

    @WebMethod(operationName = "stopUpdater")
    public int stopUpdater() throws Exception {
        return ejbRef.stopUpdater();
    }

    @WebMethod(operationName = "startUpdater")
    public int startUpdater() throws Exception {
        return ejbRef.startUpdater();
    }

    @WebMethod(operationName = "isRunning")
    public boolean isRunning() throws Exception {
        return ejbRef.isRunning();
    }

    @WebMethod(operationName = "setMinimumPollingRate")
    public void setMinimumPollingRate(@WebParam(name = "seconds") int seconds) throws Exception {
        ejbRef.setMinimumPollingRate(seconds);
    }

    @WebMethod(operationName = "setCurrentPollingRate")
    public void setCurrentPollingRate(@WebParam(name = "seconds") int seconds) throws Exception {
        ejbRef.setCurrentPollingRate(seconds);
    }

    @WebMethod(operationName = "setRepositoryPath")
    public void setRepositoryPath(@WebParam(name = "path") String path) throws Exception {
        ejbRef.setRepositoryPath(path);
    }
    
}
